package com.example.chatgptapplication.utils;

import com.example.chatgptapplication.entity.Admin;

public class AdminHolder {

    private static final ThreadLocal<Admin> tl = new ThreadLocal<>();

    public static void saveUser(Admin user){
        tl.set(user);
    }

    public static Admin getUser(){
        return tl.get();
    }

    public static void removeUser(){
        tl.remove();
    }




}
